//
//  ViewController.m
//  UI11-xib拉勾
//
//  Created by 韩旭 on 16/7/28.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "ViewController.h"
#import "HX_RegsignTable.h"
#import "HX_TestPhone.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *cen320;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *btnWidth;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *centerX;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *width;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imageWidth;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *viewWidth;
@end

@implementation ViewController
- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    self.cen320.priority = 998;
    self.centerX.priority = 999;
    self.width.constant = 300;
    self.btnWidth.constant = 335;
    self.viewWidth.constant = 150;
    [UIView animateWithDuration:2 delay:0 options:0 animations:^{
        [self.view layoutIfNeeded];
    } completion:^(BOOL finished) {
    }];
    self.imageWidth.constant = 27;
    [UIView animateWithDuration:1 delay:1 options:0 animations:^{
        [self.view layoutIfNeeded];
    } completion:^(BOOL finished) {
        
    }];
    
}
- (void)viewDidLoad {
    [super viewDidLoad];
  
    
    self.view.backgroundColor = [UIColor redColor];
}
- (IBAction)Pass:(id)sender {
    
    HX_TestPhone *hx_text = [[HX_TestPhone alloc] init];
    hx_text.modalTransitionStyle = 2;
    [self presentViewController:hx_text animated:YES completion:^{
        
        
    }];
}
- (IBAction)Resgin:(id)sender {
    HX_RegsignTable *hx = [[HX_RegsignTable alloc] init];
    hx.modalTransitionStyle = 2;
    [self presentViewController:hx animated:YES completion:^{
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
